package com.jnzc.ocr.serv.shop.api;

import com.jnzc.ocr.common.bean.PageResult;
import com.jnzc.ocr.serv.shop.entity.ShopCheck;
import com.jnzc.ocr.serv.shop.filter.ShopCheckFilter;
import com.jnzc.ocr.serv.shop.vo.ShopCheckCreateVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Date;

/**
 * @author zhangcm
 * @version 1.0, 2017-09-29
 */
@FeignClient("serv-shop")
@RequestMapping("/ShopCheckApi")
public interface ShopCheckApi {

    @PostMapping("/find")
    ShopCheck find(@RequestParam("id") Long id, @RequestParam("shopId") Long shopId);

    @PostMapping("/search")
    PageResult<ShopCheck> search(@RequestBody ShopCheckFilter filter, @RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize);

    @PostMapping("/save")
    ShopCheck save(@RequestBody ShopCheckCreateVo vo, @RequestParam("shopId") Long shopId);

    @PostMapping("/getLastDate")
    Date getLastDate(@RequestParam("shopId") Long shopId);
	
}
